package cn.kongwg.controller;

import cn.kongwg.entity.User;
import cn.kongwg.service.UserServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

/**
 * @author kongwg
 * @create 2021-03-03 21:30
 */
@Controller
public class UserController {

    @Autowired
    private UserServiceImpl userService;

    public User getUser(){
        return userService.findUserById(1);
    }
}
